package com.highstockings.dao;

import com.highstockings.model.GalleryType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("GalleryTypeMapper")
public interface GalleryTypeMapper {
    int deleteByPrimaryKey(Integer tid);

    int insert(GalleryType record);

    int insertSelective(GalleryType record);

    GalleryType selectByPrimaryKey(Integer tid);

    int updateByPrimaryKeySelective(GalleryType record);

    int updateByPrimaryKey(GalleryType record);
    @Select("select * from tb_gallerytype")
    List<GalleryType> selectAllGalleryType();

    @Select("select * from tb_gallerytype where librarytype like concat(concat('%',#{type}),'%')")
    GalleryType selectNameByType(String type);
}